#ifndef __ANIMATED_SPRITE_HPP__
#define __ANIMATED_SPRITE_HPP__

#include "Sprite.hpp"

class AnimatedSprite : public Sprite
{
public:
	AnimatedSprite(std::string fileName, int iFramesNumber, int iFrameDuration, MVector3D& origin, bool bLoop = true, float fScaleX = 1.0f, float fScaleZ = 1.0f);
	~AnimatedSprite();

	void update( clock_t tick );
	void render();
	void restart();
	bool isOver();

private:
	int   m_iFramesNum;
	int   m_iCurrFrame;
	int   m_iFrameDuration;
	int   m_iLastTick;
	bool  m_bLoop;
};

#endif // __ANIMATED_SPRITE_HPP__